package com.sxfans.designmodel.builder.single;

public class Singleton {
	private Singleton(){
		System.out.println("sigleton is create");
	}
	
	public static class SingletonHolder{
		private static Singleton signletion = new Singleton();
	}
	
	public static Singleton getInstance(){
		return SingletonHolder.signletion;
	}
	
	public static void main(String[] args) {
		Singleton.getInstance();
		Singleton.getInstance();
	}
}
